package cn.micro.keep.accounts.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
 * <p>
 * 账单信息表
 * </p>
 *
 * @author 柘阳科技
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AccountOdsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账单主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 账单金额
     */
    private BigDecimal amount;

    /**
     * 账单描述
     */
    private String descInfo;

    /**
     * 账单分类ID
     */
    private Integer categoryId;


    /**
     * 账单日期
     */
    private LocalDate useDate;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 账单分组ID(个人记账都为0)
     */
    private Long groupId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 逻辑删除0：未删除 1：已删除
     */
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String PROJECT_NAME = "project_name";

    public static final String AMOUNT = "amount";

    public static final String DESC_INFO = "desc_info";

    public static final String CATEGORY_ID = "category_id";

    public static final String USE_DATE = "use_date";

    public static final String USER_ID = "user_id";

    public static final String GROUP_ID = "group_id";

    public static final String DELETED = "deleted";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
